package com.echartsdata.Entity;

import com.alibaba.fastjson2.annotation.JSONField;

/***
 * @author 凉笙
 * 实体类
 */
public class Data2 {
    //需要转换成指定数据并指定json生成的顺序
    @JSONField(name = "name",ordinal = 1)
    private String namesbase;
    @JSONField(name = "value" ,ordinal = 2)
    private Integer countsum;

    public String getNamesbase() {
        return namesbase;
    }

    public void setNamesbase(String namesbase) {
        this.namesbase = namesbase;
    }

    public Integer getCountsum() {
        return countsum;
    }

    public void setCountsum(Integer countsum) {
        this.countsum = countsum;
    }

    @Override
    public String toString() {
        return "Data2{" +
                "namesbase='" + namesbase + '\'' +
                ", countsum=" + countsum +
                '}';
    }
}
